package com.ruoyi.safe.mapper;

import java.util.List;
import com.ruoyi.safe.domain.EmergencyRescue;

/**
 * 应急物资和人员Mapper接口
 * 
 * @author yxf
 * @date 2021-08-10
 */
public interface EmergencyRescueMapper 
{
    /**
     * 查询应急物资和人员
     * 
     * @param erId 应急物资和人员ID
     * @return 应急物资和人员
     */
    public EmergencyRescue selectEmergencyRescueById(Long erId);

    /**
     * 查询应急物资和人员列表
     * 
     * @param emergencyRescue 应急物资和人员
     * @return 应急物资和人员集合
     */
    public List<EmergencyRescue> selectEmergencyRescueList(EmergencyRescue emergencyRescue);

    /**
     * 新增应急物资和人员
     * 
     * @param emergencyRescue 应急物资和人员
     * @return 结果
     */
    public int insertEmergencyRescue(EmergencyRescue emergencyRescue);

    /**
     * 修改应急物资和人员
     * 
     * @param emergencyRescue 应急物资和人员
     * @return 结果
     */
    public int updateEmergencyRescue(EmergencyRescue emergencyRescue);

    /**
     * 删除应急物资和人员
     * 
     * @param erId 应急物资和人员ID
     * @return 结果
     */
    public int deleteEmergencyRescueById(Long erId);

    /**
     * 批量删除应急物资和人员
     * 
     * @param erIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteEmergencyRescueByIds(Long[] erIds);
}
